#include"../server.hpp"


int main()
{
    std::cout << "1. 开始创建客户端套接字..." << std::endl;
    Socket cli_sock;
    bool connect_result=cli_sock.CreateClient(8500,"127.0.0.1");
     std::cout << "3. 连接结果: " << (connect_result ? "成功" : "失败") << std::endl;
     if (!connect_result) {
        std::cerr << "连接服务器失败！程序退出" << std::endl;
        return -1;
    }
    std::string str = "hello zss hahaha";
    cli_sock.Send(str.c_str(),str.size());
    char buf[1024]={0};
    cli_sock.Recv(buf,1023);
    DBG_LOG("%s",buf);
    return 0;
}